package com.kingtown.inventory.net;


import android.util.Log;
import lombok.Data;

@Data
public class Response<T> {
    private Integer code;
    private String msg;
    private T data;

    public boolean isSuccess() throws Exception {
        if(code != 0){
            Log.e("Response","接口请求成功，返回错误");
            return false;
        }
        return true;
    }


}
